import request from '@/utils/request'
//医院列表
export function clientversion(data) {
    return request({
      url: 'clientversion',
      method: 'get',
      params: data,
      headers: {
        showLoading: true
      }
    })
  }
  //新增
export function clientversionCreate(data) {
    return request({
      url: 'clientversion/create',
      method: 'post',
      data,
      headers: {
        showLoading: false
      }
    })
  }
  //详情
export function clientversionRead(data) {
    return request({
      url: 'clientversion/read',
      method: 'get',
      params: data,
      headers:{
        'showLoading':true,
        'loadingTarget':'.innerLoding'
      }
    })
  }
  //编辑
export function clientversionUpdate(data) {
    return request({
      url: 'clientversion/update',
      method: 'put',
      data,
      headers: {
        showLoading: false
      }
    })
  }
//状态
  export function updateismust(data) {
    return request({
      url: 'clientversion/updateismust',
      method: 'put',
      data,
      headers: {
        showLoading: false
      }
    })
  }
  //删除
  export function clientversionDelete(data) {
    return request({
      url: 'clientversion/delete',
      method: 'delete',
      data,
      headers: {
        showLoading: false
      }
    })
  }